<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script>
    <link href="__PUBLIC__/admin/css/admin.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function _black(data){
            var $winheight=$(window).height()   //浏览器窗口高度
            var $winwidth=$(window).width();    //浏览器宽度
            window.open(data,"","height=768px,width=1024px,scrollbars=yes,resizable=yes");
        }
    </script>
</head>
<body>
      <form action="__URL__/num/" method="POST">
        <table border="0" cellpadding="0" cellspacing="0" id="list-top">
            <tr><td><button type="button" onclick="javascript:window.location.href='__URL__/add'">添加根栏目</button></td><td><button type="submit">更新排序</button></td></tr>
        </table>

        <table border="0" cellpadding="0" dellspacinng="0" id="listtext" style="width:700px">
           <tr id="listt"><td class="lw">排序</td><td class="lw">栏目名称</td><td class="lw">预览</td><td class="lw">查看</td><td class="lw">增加</td><td class="lw">操作</td></tr>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="menu_<?php echo ($vo["listid"]); ?>">
            	   <td class="lw"> <input type="text" name="num<?php echo ($vo["typeid"]); ?>" value="<?php echo ($vo["num"]); ?>" style="width:30px;border:1px solid #ccc;" title="按照1,2,3顺序排列，1为第一个。留空则在最后依次排列"/></td>
                <td class="lq"> |<span>—<?php echo ($vo["fh"]); ?></span><a href=""><?php echo ($vo["name"]); ?></a> [ID:<?php echo ($vo["typeid"]); ?>]</td>
                <td class="lw"><a href="__ROOT__/Index/page/id/<?php echo ($vo["typeid"]); ?>" target="_blank">预览</a></td>
                <td class="lw"><a href="">内容</a></td>
                <td class="lw"><a href="__URL__/add/id/<?php echo ($vo["typeid"]); ?>">增加子栏目</a></td>
                <td class="lw"><a href="__URL__/edit/id/<?php echo ($vo["typeid"]); ?>">修改</a> | <a href="__URL__/del/id/<?php echo ($vo["typeid"]); ?>">删除</a></td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
	    	
        </table>
        </form>

</body>
</html>